package com.xuan.commons.utils;

import cn.hutool.crypto.digest.DigestUtil;

/**
 * @author renzhengxuan
 * @date 2021/5/23
 */
public class Sha256 {
    public static String encodePassword(String password){
        if(password.equals("")||password==null){
            return null;
        }else{
            return DigestUtil.sha256Hex(password);
        }
    }
}
